'use strict'

let FFServer = require('./server/server')

let args = process.argv //
	//let args = [0, "D:/code/sanguo1.4/sanguo/sun/appmain.js", "gate", "D:/code/sanguo1.4/sanguo/sun/config.json"]
	//console.log(args)
let servername = null
if (args.length > 2) {
	servername = args[2]
}

let config = require(args[3])
let sersconf = config['servers']
let masterconf = config['master']
let serconfig = sersconf[servername]
let ser = new FFServer()
ser.initconfig(serconfig, servername, '', '', masterconf)
ser.start()
	/**/
